#ifndef LOG_H
#define LOG_H

#include <time.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>

#define BUF_SIZE                4096
#define TYPE_LEN		        64
#define LOG_FILE                "log.txt"
#define LOG_BUF_SIZE            1024
#define TRUE 1
#define FALSE 0


void log_write(char* msg, int print_time, int flag);

#endif